<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<script>
function Person(name, age)
{
	this.name = name;
	this.age = age;
	this.play = function(){
		console.log("喜欢游戏");
	};
}
var obj = new Person('小路', 20);
obj["name"] = '大陆';
console.log(obj["name"]);
//obj.play();
obj["play"]();
</script>
<body>
	
</body>
</html>